﻿@model CmsAdminDomainModel

@{
    ViewBag.Title = "Add domain";
}

<h1>Add domain</h1>

@using (Html.BeginForm())
{
    <div class="primary-content">
        <div class="b-form b-form_bordered b-form_theme_white">
        	<div class="b-form__head g-clear">
                <h3 class="b-form__title">Domain details</h3>
            </div>
            <div class="b-form__body">
                <fieldset class="b-form b-form_nopad">
                    <ol class="b-form__rows ul-reset g-clear">            
                        <li class="b-form__row g-clear">
                            <label for="SiteId">Site</label>
                            @Html.DropDownListFor(e => e.SiteId, new SelectList(Model.AllSites, "Id", "SiteName"))
                            @Html.ValidationMessageFor(p => p.SiteId)
                        </li>
                        <li class="b-form__row g-clear">
                            <label for="Hostname">Hostname</label>
                            @Html.TextBoxFor(p => p.Hostname, new { @class = "text" })
                            @Html.ValidationMessageFor(p => p.Hostname)
                        </li>
                        <li class="b-form__row g-clear">
                    		<input class="b-button" type="submit" value="Add domain"/>                        	
                        </li>
                    </ol>
                </fieldset>
            </div>
        </div>
    </div>
}
